package com.itheima03.day13;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

/**
 * @author 刘全
 * @date 2021/8/4
 */
public class Test2 {
    public static void main(String[] args) throws IOException {
        FileReader fr = new FileReader("D:\\itheima\\作业\\day01.txt");
        FileWriter fw = new FileWriter("day01.txt");
        int len;
        char[] chars = new char[1024];
        while ((len = fr.read(chars))!=-1) {
            fw.write(chars,0,len);
        }
        fr.close();
        fw.close();
    }
}
